package com.ie.service.impl;

import com.ie.common.http.Result;
import com.ie.common.http.ResultCodeEnum;
import com.ie.mapper.PetApplicationMapper;
import com.ie.service.PetApplicationService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;


@Service
public class PetApplicationServiceImpl implements PetApplicationService {
@Resource
private PetApplicationMapper petApplicationMapper;
    @Override
    public Result getAllPetApplication() {

        return  Result.build(petApplicationMapper.getAllPetApplication(),1,"查询成功");
    }

    @Override
    public boolean updatePetApplication(String id, String status) {

        return petApplicationMapper.updatePetApplication(id,status);
    }

    @Override
    public Result getAllPetApplicationz() {

        return  Result.build(petApplicationMapper.getAllPetApplicationz(),1,"查询成功");
    }
}
